﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestFulService
{
    public class deskOrder
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 成功
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public deskOrderData data { get; set; }

    }

    public class deskOrderData
    {
        /// <summary>
        /// 
        /// </summary>
        public int currentPage { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int totalPages { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int pageSize { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int totalCount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Boolean hasPrevious { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Boolean hasNext { get; set; }

        public List<OrderHead> rows { get; set; }
    }

    //商品明细
    public class OrderHead
    {
        public int id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string channelsheetno { get; set; }
        public string channelkeyword { get; set; }
        public int payover { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string billtype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string returnordersn { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal totalsalevalue { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal totaldiscvalue { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal totalsjdisc { get; set; }
        /// <summary>
        /// decimal
        /// </summary>
        public ExtendedNumerics.BigDecimal totalptdisc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal totalsjdp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal totalptdp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal commissionvalue { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal payablevalue { get; set; }
        /// <summary>
        /// 小计前折扣
        /// </summary>
        public ExtendedNumerics.BigDecimal totalitemvalue { get; set; }
        /// <summary>
        /// 小计后折扣
        /// </summary>
        public ExtendedNumerics.BigDecimal payablelogisticsvalue { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string logisticsmodekeyword { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int preorder { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string startdeliverytime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string enddeliverytime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal packagefee { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int orderseq { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int weight { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal lunchboxfee { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string warehouseid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ordertime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string note { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string vipno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string receivername { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string receivermobile { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string receiveraddress { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string receiverlongitude { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string receiverlatitude { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string receivertype { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string invoicetype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string invoicetitle { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string invoicedutyno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string invoicecontent { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal invoicemoney { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string roomuploadflagno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string roomno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string deskno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal tastetotalamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sellway { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string isinroom { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int custnumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendedNumerics.BigDecimal serviceamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string takeposno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string createtime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string updatetime { get; set; }

        public string uploadflag { get; set; }
        /// <summary>
        /// 商品列表
        /// </summary>
        public List<OrderDTL> orderdetail { get; set; }
        /// <summary>
        /// 支付列表
        /// </summary>
        public List<OrderPAY> orderpay { get; set; }
    }

    public class OrderDTL
    {
        public int id { get; set; }
        public int headid { get; set; }
        public string channelsheetno { get; set; }
        public string itemcode { get; set; }
        public string barcode { get; set; }
        public string pluname { get; set; }
        public ExtendedNumerics.BigDecimal qriginalprice { get; set; }
        public int weight { get; set; }
        public ExtendedNumerics.BigDecimal saleprice { get; set; }
        public ExtendedNumerics.BigDecimal discvalue { get; set; }
        public ExtendedNumerics.BigDecimal discvaluept { get; set; }
        public ExtendedNumerics.BigDecimal discbtsj { get; set; }
        public ExtendedNumerics.BigDecimal discbt { get; set; }
        public ExtendedNumerics.BigDecimal commissionvalue { get; set; }

        public int qty { get; set; }
        public ExtendedNumerics.BigDecimal money { get; set; }

        public int posqty { get; set; }
        public int electronicgoods { get; set; }

        public ExtendedNumerics.BigDecimal coefficient { get; set; }
        public string activityid { get; set; }

        public ExtendedNumerics.BigDecimal supplierrate { get; set; }

        public ExtendedNumerics.BigDecimal posprice { get; set; }
        public int seq { get; set; }
        public string uploadflag { get; set; }
        public string foodtype { get; set; }
        public string bcatno { get; set; }
        public string scatno { get; set; }
        public string classstno { get; set; }
        public string sellway { get; set; }
        public string taste { get; set; }
        public string printtype { get; set; }
        public string printname { get; set; }
        public string printnameext1 { get; set; }
        public string printnameext2 { get; set; }

        public string couponid { get; set; }
        public string suitindex { get; set; }
        public string suitno { get; set; }
        public string comment { get; set; }

    }

    public class OrderPAY
    {
        public int id { get; set; }
        public int headid { get; set; }
        public string channelsheetno { get; set; }
        public string payno { get; set; }
        public string name { get; set; }
        public ExtendedNumerics.BigDecimal payment { get; set; }
        public int seq { get; set; }
        public string uploadflag { get; set; }
    }
}
